fix lgtm detected ill-defined for loop.
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 28 Nov 2021 06:37:59 +0000 (23:37 -0700)
committertsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 28 Nov 2021 06:37:59 +0000 (23:37 -0700)
bcr.cc

diff --git a/bcr.cc b/bcr.cc
index 1d744c8e7e42458c66a6c85881b88725331dc3bd..b8bf159c174166af714393a4ef488197587c10f4 100644 (file)
--- a/bcr.cc
+++ b/bcr.cc
@@ -252,7 +252,7 @@ bcr_data_read()
     route->rte_name = routename;
   }
 
-  for (int index = 1; index > 0; index ++) {
+  for (int index = 1; ; index++) {
     char station[32];
     QString str;
     int mlat, mlon;            /* mercator data */